﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hanhud
{
    public class CPhoto
    {
        private string _photoID = string.Empty;
        public string PhotoID { get { return _photoID; } private set { _photoID = value; } }

        private DateTime _addedDate = DateTime.Now;
        public DateTime AddedDate { get { return _addedDate; } private set { _addedDate = value; } }

        private string _title = string.Empty;
        public string Title { get { return _title; } set { _title = value; } }

        private string _thumbFileName = string.Empty;
        public string ThumbFileName { get { return _thumbFileName; } set { _thumbFileName = value; } }

        public string _largeFileName = string.Empty;
        public string LargeFileName { get { return _largeFileName; } set { _largeFileName = value; } }

        private bool _isDefault = false;
        public bool IsDefault { get { return _isDefault; } set { _isDefault = value; } }

        public CPhoto(string photoID)
        {
            this.PhotoID = photoID;
        }

        public CPhoto(string photoID, DateTime addedDate, string title, string thumbFileName, string largeFileName, bool isDefault)
            : this(photoID)
        {
            this.AddedDate = addedDate;
            this.Title = title;
            this.ThumbFileName = thumbFileName;
            this.LargeFileName = largeFileName;
            this.IsDefault = isDefault;
        }

        public byte[] GetContent()
        {
            return GetContent(true);
        }

        public byte[] GetContent(bool bThumbView)
        {
            return null;
        }

        public static byte[] GetPhotoContent(string photoID, bool bThumbView, string storePath)
        {
            return null;
        }
    }
}
